﻿using Interfaces;
using System.Windows.Media.Imaging;

namespace Models
{
    public class SearchData : ISearchData
    {
        public int GenericItemId { get; private set; }
        public string GenericItemName { get; private set; }
        public string BrandName { get; private set; }
        public string CategoryName { get; private set; }
        public decimal DiscountPrice { get; private set; }
        public string ItemDescription { get; private set; }
        public string DisplayName { get; private set; }
        public string Material { get; private set; }
        public byte[] Image { get; private set; }
        public BitmapSource DisplayImage { get; set; }

        public SearchData(int genericItemId, string genericItemName, string brandName, string categoryName, decimal discountPrice, string itemDescription, string displayName, string material, byte[] image)
        {
            GenericItemId = genericItemId;
            GenericItemName = genericItemName;
            BrandName = brandName;
            CategoryName = categoryName;
            DiscountPrice = discountPrice;
            ItemDescription = itemDescription;
            DisplayName = displayName;
            Material = material;
            Image = image;
        }
    }
}
